/*Nn3v3QQQ2KVXFyw+qmWIHibG/ASIAWVLrH/9LTULq6wfyE/qOMTjPGaHUCO/jk0z*/
/*
 * @Author: xiahui 
 * @PageInfo: 付款执行情况
 * @Date: 2019-02-26 15:38:07 
 * @Last Modified by: yangls7
 * @Last Modified time: 2019-03-25 18:57:29
 */
import { AREA, URL, FIELDS } from '../../constance';

export default function(props) {
	let checkedRows = props.table.getCheckedRows(AREA.listTableId);

	let params;
	if (checkedRows && checkedRows.length == 1) {
		// 只勾选一条数据
		params = {
			pk_org: checkedRows[0].data.values[FIELDS.pk_org],
			vbillcode: checkedRows[0].data.values[FIELDS.vbillcode],
			dmakedate: checkedRows[0].data.values[FIELDS.dmakedate].value
		};
	}
	// 跳转至采购合同付款执行情况查询报表
	props.openTo(null, {
		appcode: '400413242',
		pagecode: '400413242_report',
		params: JSON.stringify(params)
	});
}

/*Nn3v3QQQ2KVXFyw+qmWIHibG/ASIAWVLrH/9LTULq6wfyE/qOMTjPGaHUCO/jk0z*/